<p class="pageTitle"><%=h Artwork.l_attr(:viewing) + " - " +  @artwork.name %></p>

<div id="rightContent">
    <%= link_to 'Edit Basic Artwork Information', edit_admin_artwork_path(@artwork), :class => 'largeButton' %>
    
    <%= link_to 'Add/Edit Description', new_admin_artwork_artwork_description_url(@artwork), :class => 'largeButton' %>
    <%= link_to 'Add/Edit Media', new_admin_artwork_media_url(@artwork), {:class => 'largeButton'} %>
    <%= link_to 'Add/Edit Categories and Tags', '', {:class => 'largeButton'} %>
    <br />
    <%= link_to 'Publishing', { :controller => 'admin/artworks', :action => 'publish', :id => @artwork.id }, {:class => 'largeButton'} %>
</div>

<div id="mainContent">
<fieldset><legend><%=Artwork.l_attr('basic')%></legend>
<%= render :partial => 'show_basic', :object => @artwork %>
</fieldset>
<br />

<fieldset><legend>Media</legend>
<% if @artwork.medias.size > 0 %>
<table id='media_table'>
<tr>
	<th>Thumbnail</th>
	<th>Caption</th>
</tr>
<%= render :partial => "admin/medias/show_media", :collection => @artwork.medias %>
</table>
<% else %>
This artwork doesn't have any media yet.  Click the Add Media button to add some.
<% end %>
</fieldset>

<br />
<fieldset><legend><%= ArtworkDescription.l_attr(:description) %></legend>
<%= render :partial => 'show_description', :object => @artwork %>
</fieldset>
</div>